﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace FanaticToy.Core
{
    ///<summary>代码页的源数据。</summary>
    public class CodeMetaData
    {
        ///<summary>文件路径。</summary>
        public string FilePath { get; set; }

        ///<summary>指定目标所在的行数。</summary>
        public int LineId { get; set; } = -1;

        public override string ToString()
        {
            if (LineId < 0)
            {
                return $"filepath {FilePath}, no target lineid";
            }
            else
            {
                return $"filepath {FilePath}, line {LineId}";
            }

        }

    }
}
